package com.service;


import com.bean.User;

public interface UserService {

    /**
     * 注册用户
     *pages
     * @param user
     */
   public int registUser(User user);

    /**
     * 登陆
     *
     * @param user
     * @return
     */
    public User login(User user);

    /**
     * 检查用户名是否可用
     *
     * @param username
     * @return true 用户名已存在
     */
    public boolean existsUsername(String username);

    /**
     * 用户名、邮箱注册
     * @param username
     * @param useremail
     * @return
     */
    public boolean existsUsernameemail(String username,String useremail);
    /**
     * 根据邮箱查询用户信息
     * @param user
     * @return
     */
    public User queryUseremail(User user);
}
